package com.zang.schema.observable.rate;

import java.util.ArrayList;
import java.util.List;

/**
 * 抽象目标（观察目标）： 汇率
 * @author Zhang Qiang
 * @Date 2019/8/27 16:44
 */
public abstract class Rate {

    protected List<Company> companies = new ArrayList<>();

    public abstract void change(int number);

    public void add(Company company){
        companies.add(company);
    }

    public void remove(Company company){
        companies.remove(company);
    }

}
